package com.zsh.mvc.controller;

import com.zsh.mvc.Pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zsh
 * @Description
 * @create 2022-01-21 11:22
 */
@Controller
public class ParamController {

    @RequestMapping("/testParam")
    public String testParam(String username,String password){
        System.out.println(username + ":" + password);
        return "success";
    }

    @RequestMapping("/testpojo")
    public String testPOJO(User user){
        System.out.println(user);
        return "success";
    }
}
